home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / BROWSERS / PURGE.LZH / PURGE / PURGE.TXT < prev   
Encoding:
Text File  |  1996-07-28  |  20.1 KB  |  587 lines

  1. Purge (NOS/Oasis) V1.2 Doc File
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3.  
  4.  
  5. Contents:
  6.  
  7. i) Introduction
  8. ii) History
  9. iii) Installation
  10. iv) Instructions
  11. v) Legal
  12. vi) Contact
  13. vii) Future
  14. viii) Credits
  15.  
  16.  
  17. i) Introduction
  18. ~~~~~~~~~~~~~~~~
  19.  
  20. This program was written after a  certain annoying person kept posting
  21. to comp.sys.atari.st.  However I found the  kill file functions, in at
  22. least my version of NOS (0.42) bombed  out when running (2 Bombs).  So
  23. after talking to Rich Tietjens, and asking him, If he'd send me a copy
  24. of a program he'd  written  for  filtering  Fido  Net News,  I started
  25. writing a version for NOS.  I  did  get the source code, after writing
  26. the bulk of the program, and due  to some missing files, never managed
  27. to  get  the  executable  version  to  work.   This  program  probably
  28. resembles Purge, and as such is based,  at least on the idea of, Rich
  29. Tietjens program, called Purge. If Rich hadn't written the program...
  30. maybe I'd never have started this program.  What Rich told me was that
  31. such a program was possible.
  32.  
  33. The program is known as Purge(NOS/Oasis) so as not to confuse it with
  34. the program written by Rich Tietjens.
  35.  
  36. See the credits section of this manual for details about the people I
  37. wish to thank.
  38.  
  39. NB: This version of Purge(NOS/Oasis) has been tested with files
  40. created and used by Oasis V1.35E and NOS V0.42.  The program is
  41. unlikely to work with other versions.... upgrading to these versions
  42. is a good idea if you are using earlier versions.
  43.  
  44.  
  45. Typical Usage:
  46.  
  47. Some uses for Purge(NOS/Oasis) are as follows:
  48.  
  49. * removal of junk adverts (aka Spam) from newsgroup articles
  50. * removal of 'for sale' articles
  51. * removal of articles by certain people, or on certain subjects
  52. * selecting articles only about a certain subject
  53. * parental control of articles... filtering out things such as obscene
  54.   language
  55.  
  56.  
  57. ii) History
  58. ~~~~~~~~~~~
  59.  
  60. Purge(NOS/Oasis) History:
  61.  
  62.  
  63. V1.0
  64. ----
  65.  
  66. Original version.... only two  copies  released  to  other people, who
  67. hopefully have tested it a bit !
  68.  
  69. This version was based on  a  program  called Purge, by Rich Tietjens,
  70. which as I understand was designed  for filtering out messages on Fido
  71. News.
  72.  
  73. I developed this program mainly while  waiting  for his email with his
  74. program in.  I never managed to run  his program, due to missing files
  75. and the like.
  76.  
  77. This version probably had quiet a few  bugs (!)  and was really only a
  78. beta test version, designed to see what people initially thought.
  79.  
  80. V1.1
  81. ----
  82.  
  83. More testing, and a few changes later, about 4 days after the original
  84. program was sent out.  Main changes as follows:
  85.  
  86. * Shows % of lines scanned during filtering, gives a better indication
  87. of how much is left to do.
  88.  
  89. * Shows an estimate of time  left,  this fluctuates to start with, but
  90. should settle down.
  91.  
  92. * Speed increase for  Kill  file,  with  multiple phrases, before took
  93. 2:20, now takes 0:38 (should give you  some idea of how much faster it
  94. is !).
  95.  
  96. * Mouse cursor now changes to busy bee while scanning.
  97.  
  98. * All temporary files, RSC and  KILL.TXT  are  kept in the same
  99. directory as the main program.
  100.  
  101. * The program checks to make sure there is now enough diskspace.
  102.  
  103. * The program now  allocates  all  available  memory for filtering, so
  104. limit of lines and articles is now dependent on available memory.
  105.  
  106. * possibility of Purge.inf file now  added, to preset number of lines,
  107. articles and kill phrases used, so that  odd variants can be used (eg.
  108. Binary groups, where number of lines is high, and articles low).
  109.  
  110. * Bug removed... when scanning  oasis  indexed files, the last article
  111. was missed.
  112.  
  113. * Bug removed...  scanning  more  than  one  file  in  a session meant
  114. problems with file increasing in size, as it was added to another copy
  115. of itself.
  116.  
  117. * Reminder added  to  re-index  news  if  an  Oasis  news  article was
  118. filtered.
  119.  
  120. * Allows choice of killed, or passed  articles  to be saved, so it can
  121. be used as a positive or negative filter now.
  122.  
  123. * Temporary file left on disk,  eg.  killed.txt is now no longer wiped
  124. if the passed articles  are  saved.   This  is  there for checking, or
  125. archival purposes.
  126.  
  127. * Greater GEM  compliance.   Dialog  should  work  with any resolution
  128. (except ST Low),  background  graphics  area  stored  and  returned on
  129. quiting.  Redundant code removed.
  130.  
  131.  
  132. V1.2
  133. ----
  134.  
  135. a few weeks later, after some suggestions and much speed increase:
  136.  
  137. * Now works between Oasis and NOS, and is called automatically
  138.   (Nb. will still work as V1.1 if run from the desktop).
  139.  
  140. * Faster than V1.1.  About 17 times faster !!!!
  141.  
  142. * Due to the above change, disk access was slowing the filtering,
  143.   so temporary files are no longer created, and so less slow down.
  144.  
  145. * NOS.TTP program added to package, see installation for details
  146.  
  147. * Installation and other sections added in manual
  148.  
  149. * Bug removed which was introduced when variable types were changed.
  150.   The bug caused BATCH.TXT articles to not be recognised.
  151.  
  152. * Bug removed which broke up the headers, path: variable if >256
  153.   characters long.
  154.  
  155. * SOURCE.INF file allows source file to be saved as SOURCE.TXT for
  156.   what ever purpose you might find it useful :)
  157.  
  158. * Program now quits after a keypress after filtering news, when run
  159.   between NOS and Oasis.
  160.  
  161. * News is not saved if 'passed' is selected, and no articles were
  162.   killed.
  163.  
  164. * Screen no longer cleared, to keep compatibility with Magic
  165.  
  166. * Bug which meant that first word/phrase in KILL.TXT was ignored fixed
  167.  
  168.  
  169. iii) Installation
  170. ~~~~~~~~~~~~~~~~~~
  171.  
  172. Due to the changes that have taken place between V1.1 and V1.2,
  173. I thought it a good idea to add this section
  174.  
  175. There are now two methods of running Purge(NOS/Oasis):
  176.  
  177. 1) As V1.1, from the desktop:
  178.  
  179. * Place all the files in a suitable folder, eg. PURGE
  180.  
  181. * Create/Modify the KILL.TXT file and place it in the
  182. same folder as the other files above.
  183.  
  184. * Run and follow instructions as below
  185.  
  186. Nb. KILL.TXT file _must_ be present in the same place as PURGE.PRG and
  187. PURGE.RSC for the program to run.
  188.  
  189.  
  190. 2) Between NOS and Oasis:
  191.  
  192. * In the OASIS folder, rename NOS.TTP to NOS.TTX
  193.  
  194. * copy the following files into the OASIS folder:
  195.  
  196. PURGE.PRG
  197. PURGE.RSC
  198. KILL.TXT
  199. NOS.TTP
  200.  
  201. * Do not place the above files in a sub folder, they must exist along
  202. with all the other Oasis files, such as OASIS.PRG and the old NOS.TTP
  203. (now NOS.TTX)
  204.  
  205.  
  206. iv) Instructions
  207. ~~~~~~~~~~~~~~~~~
  208.  
  209. Simple, Step-by-Step:
  210.  
  211. This program is designed only to  work  with Oasis V1.35 and NOS 0.42,
  212. using Oasis Version 2  with  this  program  will  not work.  Using any
  213. other programs files with  this  program  will  almost certainly cause
  214. damage !
  215.  
  216. Nb. I'm not sure if Oasis V1.3x and NOS V0.4x will work, however upgrading
  217.     is advised, as the latest versions (currently Oasis V1.35 and NOS
  218.     V0.42) contain many bug fixes and functions not present in earlier
  219.     versions.
  220.  
  221. Switch to a resolution higher than  ST  Low  res, eg. Med Res, or High
  222. Res
  223.  
  224. Modify the KILL.TXT file to suit your needs (see later)
  225.  
  226.  
  227. For Running From The Desktop (as V1.1):
  228.  
  229.         Load the PURGE.PRG program
  230.  
  231.         Select the 'PURGE' button
  232.  
  233.         Select whether you are filtering  BATCH.TXT  file generated by NOS, or
  234.         an indexed *.NEW Oasis news file (Select BATCH for BATCH.TXT
  235.         files generated by NOS, or Oasis for *.NEW files generated by
  236.         Oasis).
  237.  
  238.         Find the correct file using the fileselector
  239.  
  240.         Wait while Purge Filters out the articles
  241.  
  242.         Select whether you want to save the killed articles (those which _did_
  243.         contain one or more of the phrases  or words in the KILL.TXT file), or
  244.         the passed articles (those which _didn't_  containing one or more of the
  245.         phrases or words in the KILL.TXT files).
  246.  
  247.         Quit the Purge program and re-index/index the filtered news file.
  248.  
  249.  
  250. For Running Between NOS and Oasis:
  251.  
  252.         Run Oasis as usual, select the internet option, and connect using the
  253.         correct option.  You should see as the screen clears a small line at
  254.         the top of the screen, telling you that the program is running.
  255.  
  256.         Run NOS as usual
  257.  
  258.         Exit from NOS (by typing 'exit' at the NOS> option
  259.  
  260.         If there is any news to filter Purge(NOS/Oasis) will now run,
  261.         select the PURGE button if you want the program to filter the
  262.         news, otherwise select Quit.
  263.  
  264.         Instead of asking the user to select the file to be filtered,
  265.         Purge(NOS/Oasis) will automatically load and filter the file
  266.         called batch.txt in \OASIS\SPOOL\ARTICLES which is where NOS
  267.         saves the news
  268.  
  269.         Select which articles you want saving, the Passed or Failed
  270.         articles.
  271.  
  272.         Quit from Purge(NOS/Oasis) by pressing a key.
  273.  
  274.         Oasis will now run, and should either automatically unbatch
  275.         the news (if you have this set (*recommended*)) or unbatch on
  276.         your command.
  277.  
  278.  
  279. Nb. for ease of use for the average user I suggest you run
  280. Purge(NOS/Oasis) between Oasis and NOS, this then doesn't require the
  281. user to think about filtering the news, and should also filter quickly
  282. enough for it not to be too much of a disturbance.
  283.  
  284.  
  285. Detailed:
  286.  
  287. The first thing you need to do is  to edit the KILL.TXT file in a word
  288. processor.
  289.  
  290. This is  an  ascii  file  which  contains  the  words  or  phrases you
  291. want/don't want to find in your news articles.
  292.  
  293. And example is shown below:
  294.  
  295. Sinclair
  296. Subject: FS
  297. Subject: WTB
  298. Subject:FS
  299. Subject:WTB
  300.  
  301. Make sure there is a CR after the last word/phrase. Otherwise the
  302. program  will miss the last phrase/word. DO NOT put an extra CR on a
  303. blank line... otherwise _all_ articles with a blank line in will be
  304. killed !
  305.  
  306. The KILL.TXT file needs each new word or phrase on a new line.
  307.  
  308. Beware of putting in something like
  309.  
  310. WWW
  311.  
  312. as many people include things like:
  313.  
  314. http://www.mypage.com/myhomepage/home.html
  315.  
  316. in their taglines, and the www will  be picked up.  Instead add spaces
  317. like:
  318.  
  319.  WWW
  320.  
  321. so that only complete words where WWW appears (like that) with a space
  322. either side.
  323.  
  324. beware also of things like:
  325.  
  326. CAB
  327.  
  328. which unless spaces are used as above, will apear in words, such as:
  329.  
  330. Cable
  331. cabin
  332. cabbage
  333.  
  334. Again use of spaces can limit this to words.
  335.  
  336. Also beware of using things like FS  alone, use as in the example, the
  337. subject line as well.
  338.  
  339. Before you begin using the  KILL.TXT  file  its  a  good idea to check
  340. through your news file in a Word  Processor, first for the phrases you
  341. have specified, and to check that they only come up where they should.
  342.  
  343. Also you might like to consider only working on a backup file to start
  344. with.
  345.  
  346.  
  347.  
  348. Purge (NOS/Oasis) can work with two  sorts  of source file, that saved
  349. by NOS,  the  BATCH.TXT  file,  often  found  in  \spool\articles\  or
  350. oasis\spool\articles.
  351.  
  352. This contains  _all_  the  news  articles  saved  out  by  NOS  as  it
  353. downloaded  them.   If  you  have   Oasis   set  to  unbatch  articles
  354. automatically after quiting NOS, then you  are only likely to see this
  355. file if you have a crash.  Oasis  can be set to _not_ unbatch articles
  356. on quiting NOS, but only when you specify, using the unbatch option in
  357. the Oasis options file.  Once you  want  to unbatch articles, from the
  358. BATCH.TXT file (filtered or not)  use  the Un-Batch News option, under
  359. the Internet menu in Oasis.
  360.  
  361. The above change is not needed if you intend to run Purge
  362. automatically between Oasis and NOS, indeed letting Oasis unbatch the
  363. news straight away is a much better option.
  364.  
  365. If you already unbatch or index the news with Oasis, you can still use
  366. this program, provided you  are  using  the  correct  version of Oasis
  367. (1.35 has been tested, other version  are untested).  Oasis stores its
  368. news  files  in  /oasis/spool/news/newsbase/   as   *.NEW  files,  eg.
  369. 96203001.NEW, they are usually the large  files in the folder.  If you
  370. filter these file, you must   remember   to   use  Oasis to 're-index'
  371. the group(s) before reading them   in  Oasis,  otherwise the displayed
  372. text will be totally out  of  place.    Use  the Re-index option under
  373. the news menu.
  374.  
  375.  
  376. Purge (NOS/Oasis) doesn't overwrite the source file until all articles
  377. have been sorted, and as such is  unlikely  to  corrupt  the source
  378. file, during errors, unless the  error  occurs  while  saving  the
  379. articles (after filtering).
  380.  
  381. Purge (NOS/Oasis) automatically allocates memory  for the source file,
  382. and as such provides a limit as to how big the source file can be.  In
  383. the 3 Meg of memory I have left, it allocates space for 33000 lines of
  384. text, 5000 articles and about 2000 Kill words and phrases.
  385.  
  386. The number of lines assumes all lines to be 80 chars wide, the average
  387. from comp.sys.atari.st varies, but is about 40.
  388.  
  389. If you want to alter these values... for instance if you are filtering
  390. a binaries group, where there  are  very  low numbers of articles, but
  391. very high numbers of lines.  Or  a  contact group, such that there are
  392. many short articles then you  can  alter  the values using a purge.inf
  393. file.
  394.  
  395. The file is checked  on  loading,  and  used.   If  there isn't enough
  396. memory for the values you have suggested, then the program should tell
  397. you this, and quit.
  398.  
  399. The file is also plain ascii:
  400.  
  401. Purge (NOS/Oasis) Config File
  402. 30000
  403. 5000
  404. 2000
  405.  
  406. the first line must be exactly like this, and is a header, which Purge
  407. checks to make sure it is using the correct file.
  408.  
  409. The next line is  the maximum number  of  lines  of  text  that can be
  410. loaded.
  411.  
  412. The next value is the maximum number of articles that can be loaded.
  413.  
  414. And the last number is the  maximum  number of kill words/phrases that
  415. can be used.
  416.  
  417. The above is what I would use for most groups (like comp.sys.atari.st)
  418. however for a binaries group I may use:
  419.  
  420. Purge (NOS/Oasis) Config File
  421. 50000
  422. 500
  423. 200
  424.  
  425. and for a group with many short articles:
  426.  
  427. Purge (NOS/Oasis) Config File
  428. 15000
  429. 20000
  430. 200
  431.  
  432.  
  433. However use of this file, is  only  really  needed if the setting used
  434. normally don't provide enough of  one  type of variable.  Don't fiddle
  435. with this unless you normally get errors, and need to !
  436.  
  437.  
  438.  
  439. Creating a file called SOURCE.INF  in  the same directory as PURGE.PRG
  440. and PURGE.RSC will  cause  the  program  to  save  the  source file as
  441. SOURCE.TXT in this same directory as Purge(NOS/Oasis), before  it
  442. writes over the original with the newly  filtered  text.   The  file
  443. can  be  created with any program, and contain anything, its presence
  444. is what causes the program to work.
  445.  
  446.  
  447.  
  448. v) Legal
  449. ~~~~~~~~~~
  450.  
  451. Purge(NOS/Oasis) executables, document file and other related files
  452. may be distributed together freely in an unmodified form and may be
  453. used without fee by any individual for non-commercial use, subject to
  454. the following terms:
  455.  
  456. Purge(NOS/Oasis) may not be sold or resold, distributed as a part of
  457. any commercial package, used in support of a commercial service, or
  458. used in any kind of profit-generating activity even if it is being
  459. distributed freely.
  460.  
  461. The integrity of the original Purge(NOS/Oasis) archive file as
  462. distributed by me is essential.  None of it's contents may be
  463. modified or removed or added to in any way.
  464.  
  465. Purge(NOS/Oasis) is provided "AS IS" without warranty of any kind,
  466. either express or implied, including but not limited to the implied
  467. warranties of merchantability and fitness for a particular purpose. In
  468. no event shall Philip Hough be liable for any damages whatsoever
  469. including direct, indirect, incidental, consequential, loss of
  470. business profits or special damages, even if Philip Hough has
  471. been advised of the possibility of such damages.
  472.  
  473. If the user does not agree to  any  of  the above then they should not
  474. use, modify or distribute the program or its files.
  475.  
  476.  
  477. vi) Contact
  478. ~~~~~~~~~~~
  479.  
  480. You can email me at:
  481.  
  482. phil4@phil4.demon.co.uk
  483.  
  484. or by snail mail:
  485.  
  486. Phil Hough
  487. 23 Pen-y-bryn Way,
  488. Newport,
  489. Shropshire,
  490. ENGLAND.
  491. TF10 7ER
  492.  
  493. Chances are if you use this program, you have/use NOS 0.42, and Oasis
  494. 1.35E, and so you have access to email.  As this is the case its
  495. probably not difficult to post me an email telling me what you think
  496. of this program.
  497.  
  498. I know this program is freeware, and there is no obligation
  499. what-so-ever to pay me any money, send me any stuff, or even to bother
  500. telling me you use the program.
  501.  
  502. However the last of these would give me an idea of whether people are
  503. actually using my program.... one of the sole reasons why I wrote and
  504. released it (lets face it, if I wanted the money I'd make it
  505. shareware).  I'm not bothered about knowing your address and phone
  506. number so I can hassle you for money latter.... for all I care send me
  507. an anonymous email.  I'd really just like to know people are using it.
  508.  
  509. The more people that contact me, and tell me that they use it the more
  510. likely that I'll write and release other software in the future (take
  511. that as a threat if you like <g>), both on this platform, and any
  512. others I end up using in the future.
  513.  
  514. If nobody bothers to contact me... Its likely that in the future when
  515. I'm writing something for myself (which is how this program started
  516. out) I probably won't think to add a user interface and take the
  517. trouble to test it, and then release it (believe me this program has
  518. been tested... read the history section for the changes and bugs
  519. found).  All in all, I'll end up not releasing software for others to
  520. use, and keep it to myself, simply because I won't know that people
  521. want/use my software.
  522.  
  523. If you'd like the GFA Basic 3.6TTe source code for the program then
  524. also contact me and you can have it, with  a few provisions :)
  525.  
  526.  
  527. vii) Future
  528. ~~~~~~~~~
  529. The program will continue development so  long as there are changes to
  530. be made, or problems to sort.   If  you provide me with feedback, then
  531. the program is  likely  to  continue  development.   If  I receive no
  532. feedback at all then the program  will most likely stop development at
  533. V1.2.  To provide feedback just send  me  an (e)mail saying if you use
  534. the program, and if  there  is  anything  you'd  like  to see added or
  535. changed.
  536.  
  537. Some things I'm thinking of at the moment for V1.3, are the removal of
  538. the estimated time gizmo: on a 550K, 330article news batch it takes so
  539. little time to filter now that loading and saving take longer, and by
  540. the time the estimated time gizmo has settled down, its 80% of the
  541. way through the filtering, and the updating of the dialog to tell you
  542. how far its done, now adds significantly to the time taken to filter.
  543.  
  544. I may also think about re-introducing the feature (ie. an artifact of
  545. temporary files) that saved out the killed articles, as well as those
  546. that had passed (ie. save _both_ out, just to different places).
  547.  
  548. Let me know what you think on the above.... I'm unsure if either
  549. change is really needed, or whether people want or don't want either
  550. of the above.
  551.  
  552. For _my_ purposes the program as it stands, its in my eyes, as close
  553. to my ideal as it is going to get, its recent speed increase, and the
  554. functions it has, are all I need.  As such if noone tells me
  555. differently there is little point in changing or adding to it... so
  556. let me know !
  557.  
  558.  
  559. viii) Credits
  560. ~~~~~~~~~~~~~
  561.  
  562. I thought it about time to add a section in this document to express
  563. my gratitude to the following people, without their contributions this
  564. program would not have been written, nor have developed.
  565.  
  566. Rich Tietjens:  For telling me that a program such as Purge(NOS/Oasis)
  567. could be written, and that at least one other person thought this sort
  568. of program could be written.  If Rich hadn't contacted me, I'd
  569. probably still be asking around the newsgroups, asking if such a
  570. program exists.
  571.  
  572. Nick Flintham: for testing the software, and providing valuable
  573. feedback and ideas.  For anyone interested the following were
  574. suggested by Nick:
  575.  
  576. * Option to Select Kill or Passed Articles
  577. * The option to place Purge(NOS/Oasis) between NOS and Oasis so that
  578. it can be called automatically.
  579.  
  580. Phil Yeadon: for a great deal of help with the programming of
  581. Purge(NOS/Oasis), including teaching me how to program GEM'd Dialog
  582. Boxes, and also how to use memory reserving to run Between NOS and
  583. Oasis.  I also want to thank Phil at this point for writing Oasis,
  584. which without, I may not have got this far.
  585.  
  586. To the people above.... many many thanks
  587.